package com.ytxt.taskdemo.common.config.aotuConfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Properties;

/**
 * @author xujunjie xujunjie@189read.com
 * @version V1.0
 * @Title:
 * @Package
 * @Description:
 * @date
 */
@ConfigurationProperties(prefix = "lok-tar.config")
public class ConfigProperties
{
    public static final String PREFIX = "lok-tar";

    public static final String DATA_ID= "data-id";

    public static final String GROUP_ID= "group-id";

    private Properties properties = new Properties();

    public ConfigProperties() {
    }

    public Properties getProperties() {
        return properties;
    }

    public String getDataId()
    {
        return this.properties.getProperty(DATA_ID);
    }

    public void setDataId(String dataId)
    {
        this.properties.setProperty(DATA_ID,dataId);
    }

    public String getGroupId()
    {
        return this.properties.getProperty(GROUP_ID);
    }

    public void setGroupId(String groupId)
    {
        this.properties.setProperty(GROUP_ID,groupId);
    }
}
